package com.gugee.ins.common.dal.service.dic.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gugee.ins.common.dal.mapper.dic.InsDicCategoryEnumMapper;
import com.gugee.ins.common.dal.service.dic.InsDicCategoryEnumDao;
import com.gugee.ins.common.model.mysql.dic.InsDicCategoryEnum;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;



/**
 * ins博主商业分类字典表
 * @author Huangxin
 */
@Slf4j
@Service
public class InsDicCategoryEnumDaoImpl extends ServiceImpl<InsDicCategoryEnumMapper, InsDicCategoryEnum> implements InsDicCategoryEnumDao {

    /**
     * 根据枚举获取二级分类
     * @param categoryEnum
     * @return
     */
    @Override
    public String findCategoryByEnum(String categoryEnum){
        return baseMapper.findCategoryByEnum(categoryEnum);
    }
}
